import { createRouter, createWebHistory } from "vue-router";
const router = createRouter({
  history: createWebHistory(),
  //只留下login和main
  routes: [
    {
      path: "/login",
      name: "login",
      component: () => import("@/views/LoginView.vue"),
    },
    {
      path: "/",
      name: "main",
      component: () => import("@/views/LayoutView.vue"),
      redirect: "/home",
      children: [],
    },
    {
      path: "/404",
      name: "404",
      component: () => import("@/views/404.vue"),
    },
  ],
});

export default router;
